From d1d654ebac2d51e3841675faeb56480e440f622f Mon Sep 17 00:00:00 2001 From: Wolfgang Müller Date: Tue, 5 Mar 2024 18:08:09 +0100 Subject: Initial commit --- frontend/src/routes/comics/[id]/+page.svelte | 176 +++++++++++++++++++++++++++ frontend/src/routes/comics/[id]/+page.ts | 5 + 2 files changed, 181 insertions(+) create mode 100644 frontend/src/routes/comics/[id]/+page.svelte create mode 100644 frontend/src/routes/comics/[id]/+page.ts (limited to 'frontend/src/routes/comics/[id]') diff --git a/frontend/src/routes/comics/[id]/+page.svelte b/frontend/src/routes/comics/[id]/+page.svelte new file mode 100644 index 0000000..cfc5840 --- /dev/null +++ b/frontend/src/routes/comics/[id]/+page.svelte @@ -0,0 +1,176 @@ + + + + +{#if comic} + +
+ toggle('favourite')} + /> +
+ + + +
+ ($reader = $reader.open(e.detail))} + on:cover={updateCover} + /> +
+
+ + + + + +
+ +
+
+
+
+{:else} + +{/if} diff --git a/frontend/src/routes/comics/[id]/+page.ts b/frontend/src/routes/comics/[id]/+page.ts new file mode 100644 index 0000000..d872ba2 --- /dev/null +++ b/frontend/src/routes/comics/[id]/+page.ts @@ -0,0 +1,5 @@ +export function load({ params }: { params: Record }) { + return { + id: +params.id + }; +} -- cgit v1.2.3-2-gb3c3